export const imgerr = {
  inserted (el, opt) {
    el.onerror = () => {
      el.src = opt.value
    }
  }
}

export const fd = {
  inserted (el, opt) {
    el.style.border = `2px solid ${opt.value || 'red'}`
  }
}
